package com.teatime.teatime_demo.UI.Activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.teatime.library_teatime.View.Phoenix_Refresh.PullToRefreshView;
import com.teatime.teatime_demo.R;


/**
 * Created by wangzaizhou on 2017/5/18.
 */

public class ReFreshActivity extends AppCompatActivity {

    private PullToRefreshView mPullToRefreshView;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.refresh);
//        mPullToRefreshView = (PullToRefreshView) findViewById(R.id.pull_to_refresh);
//        mPullToRefreshView.setOnRefreshListener(new PullToRefreshView.OnRefreshListener() {
//            @Override
//            public void onRefresh() {
//                mPullToRefreshView.postDelayed(new Runnable() {
//                    @Override
//                    public void run() {
//                        mPullToRefreshView.setRefreshing(false);
//                    }
//                }, 1000);
//            }
//        });

    }
}
